Automattic\WooCommerce\Blocks\BlockTemplatesController D

Total Complexity 175
Dependencies 13
Dependents 1
Total lines 960
Lines of code 588
Logical lines of code 298
Comment lines 257
Methods 26
Properties 3

Methods 26

Method Rating Maintainability Complexity Lines of code
render_block_template()
D
31 49 90
add_block_templates()
C
35 27 76
get_block_templates_from_woocommerce()
A
43 12 49
init()
A
42 9 53
migrate_page()
A
45 9 41
get_block_file_template()
A
47 8 34
get_block_template_fallback()
S
46 6 37
template_permalink_settings()
S
47 6 37
remove_block_template_support_for_shop_page()
S
60 6 13
sync_endpoint_with_page()
S
54 4 23
render_woocommerce_template_part()
S
63 5 9
check_should_use_blockified_product_grid_templates()
S
64 4 10
update_product_archive_title()
S
64 4 10
update_template_permalink()
S
65 3 9
get_block_template_part()
S
67 3 7
maybe_migrate_content()
S
67 3 8
__construct()
S
63 3 9
block_template_is_available()
S
65 3 9
get_templates_directory()
S
66 3 9
add_archive_product_to_eligible_for_fallback_templates()
S
61 2 14
get_default_migrate_page_template()
S
60 1 15
has_migrated_page()
S
78 1 3
get_block_templates()
S
70 1 6
get_block_templates_from_db()
S
75 1 4
register_mini_cart_template_part_area()
S
64 1 10
get_template_path_from_woocommerce()
S
78 1 3